// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 

package com.nnee.p_l.p_b;

import android.app.*;
import android.content.Context;
import android.content.Intent;
import android.content.res.Resources;
import android.os.Parcelable;
import android.widget.RemoteViews;
import com.nnee.p_l.p_a.cls_a;
import com.nnee.p_pr.p_a.cls_f;
import com.nnee.p_pr.p_a.cls_q;
import com.nnee.p_pr.p_activity.*;
import com.nnee.p_pr.p_app.cls_PrisApp;
import com.nnee.p_pr.p_offline.cls_ProcessResult;

// Referenced classes of package com.nnee.l.b:
//            c

public class cls_d
{

    public cls_d()
    {
    }

    public static void a()
    {
        Intent intent = cls_PRISActivitySetting.a(cls_PrisApp.a());
        PendingIntent pendingintent = PendingIntent.getActivity(cls_PrisApp.a(), 0, intent, 0);
        Notification notification = new Notification();
        notification.icon = 0x7f0200a6;
        notification.flags = 16;
        cls_PrisApp prisapp = cls_PrisApp.a();
        String s = com.nnee.p_l.p_b.cls_c.a(0x7f0a01b4);
        Object aobj[] = new Object[1];
        aobj[0] = com.nnee.p_pr.p_a.cls_f.a(cls_PrisApp.a(), 0x300000L);
        notification.setLatestEventInfo(prisapp, s, com.nnee.p_l.p_b.cls_c.a(0x7f0a01b5, aobj), pendingintent);
        ((NotificationManager)cls_PrisApp.a().getSystemService("notification")).notify(1024, notification);
    }

    public static void a(int i)
    {
        String s = cls_PrisApp.a().getResources().getString(0x7f0a0210);
        Resources resources = cls_PrisApp.a().getResources();
        Object aobj[] = new Object[1];
        aobj[0] = Integer.valueOf(i);
        String s1 = resources.getString(0x7f0a020e, aobj);
        Intent intent = cls_OfflineDownloadError.a(cls_PrisApp.a(), i);
        intent.setFlags(0x10000000);
        a(s, s1, intent, 1025);
    }

    public static void a(int i, cls_ProcessResult processresult)
    {
        Notification notification = new Notification();
        notification.icon = 0x7f0200a4;
        notification.flags = 0x10 | notification.flags;
        PendingIntent pendingintent = PendingIntent.getActivity(cls_PrisApp.a(), 0, b(i, processresult), 0x8000000);
        notification.setLatestEventInfo(cls_PrisApp.a(), com.nnee.p_l.p_b.cls_c.a(0x7f0a018c), com.nnee.p_l.p_b.cls_c.a(0x7f0a0191), pendingintent);
        ((NotificationManager)cls_PrisApp.a().getSystemService("notification")).notify(1022, notification);
    }

    public static void a(Context context, int i)
    {
        String s = context.getResources().getString(0x7f0a005b);
        Intent intent = new Intent(context, com.nnee.p_pr.p_activity.cls_LoginActivity.class);
        intent.setAction("user");
        intent.addFlags(0x14000000);
        intent.putExtra("from", 6);
        NotificationManager notificationmanager = (NotificationManager)context.getSystemService("notification");
        Notification notification = new Notification(0x7f0200a7, s, System.currentTimeMillis());
        notification.defaults = 3;
        notification.flags = 16;
        PendingIntent pendingintent = PendingIntent.getActivity(context, 0, intent, 0x8000000);
        notification.setLatestEventInfo(context, context.getResources().getString(0x7f0a0000), s, pendingintent);
        notificationmanager.notify(i, notification);
    }

    public static void a(com.nnee.p_pr.p_atom.cls_PRISNotification.cls_PrisMessage prismessage)
    {
        Intent intent = cls_SystemPushMessageActivity.a(cls_PrisApp.a(), (Parcelable)prismessage);
        PendingIntent pendingintent = PendingIntent.getActivity(cls_PrisApp.a(), 0, intent, 0);
        Notification notification = new Notification();
        notification.icon = 0x7f0200a6;
        notification.flags = 16;
        notification.setLatestEventInfo(cls_PrisApp.a(), prismessage.a(), prismessage.c(), pendingintent);
        ((NotificationManager)cls_PrisApp.a().getSystemService("notification")).notify(257, notification);
    }

    public static void a(cls_ProcessResult processresult)
    {
        Notification notification = new Notification();
        notification.icon = 0x7f0200a4;
        notification.flags = 0x10 | notification.flags;
        PendingIntent pendingintent = PendingIntent.getActivity(cls_PrisApp.a(), 0, b(0, processresult), 0x8000000);
        notification.setLatestEventInfo(cls_PrisApp.a(), com.nnee.p_l.p_b.cls_c.a(0x7f0a018c), com.nnee.p_l.p_b.cls_c.a(0x7f0a018d), pendingintent);
        ((NotificationManager)cls_PrisApp.a().getSystemService("notification")).notify(1022, notification);
    }

    private static void a(String s, String s1, Intent intent, int i)
    {
        Notification notification = new Notification();
        notification.icon = 0x7f0200a4;
        notification.flags = 0x10 | notification.flags;
        PendingIntent pendingintent = PendingIntent.getActivity(cls_PrisApp.a(), 0, intent, 0x8000000);
        notification.icon = 0x7f0200a4;
        cls_PrisApp prisapp = cls_PrisApp.a();
        if(s == null)
            s = null;
        if(s1 == null)
            s1 = null;
        notification.setLatestEventInfo(prisapp, s, s1, pendingintent);
        ((NotificationManager)cls_PrisApp.a().getSystemService("notification")).notify(i, notification);
    }

    public static Intent b(int i, cls_ProcessResult processresult)
    {
        Intent intent = new Intent(cls_PrisApp.a(), com.nnee.p_pr.p_activity.cls_PRISActivityOffline.class);
        intent.addFlags(0x10000000);
        intent.putExtra("extra_result", processresult);
        intent.putExtra("extra_status", i);
        return intent;
    }

    public static void b()
    {
        String s = cls_PrisApp.a().getResources().getString(0x7f0a020c);
        String s1 = cls_PrisApp.a().getResources().getString(0x7f0a020d);
        Intent intent = cls_OfflineDownloadError.a(cls_PrisApp.a());
        intent.setFlags(0x10000000);
        a(s, s1, intent, 1022);
    }

    public static void b(Context context, int i)
    {
        if(context != null) {NotificationManager notificationmanager = (NotificationManager)context.getSystemService("notification");
        if(notificationmanager != null)
            notificationmanager.cancel(i);}
    }

    public static void b(cls_ProcessResult processresult)
    {
        Notification notification = new Notification();
        notification.icon = 0x7f0200a4;
        notification.flags = 0x10 | notification.flags;
        PendingIntent pendingintent = PendingIntent.getActivity(cls_PrisApp.a(), 0, b(7, processresult), 0x8000000);
        cls_PrisApp prisapp = cls_PrisApp.a();
        String s = com.nnee.p_l.p_b.cls_c.a(0x7f0a018e);
        Object aobj[] = new Object[2];
        aobj[0] = Integer.valueOf(processresult.d());
        aobj[1] = com.nnee.p_pr.p_a.cls_f.a(cls_PrisApp.a(), processresult.g());
        notification.setLatestEventInfo(prisapp, s, com.nnee.p_l.p_b.cls_c.a(0x7f0a0154, aobj), pendingintent);
        ((NotificationManager)cls_PrisApp.a().getSystemService("notification")).notify(1022, notification);
    }

    public static void c(cls_ProcessResult processresult)
    {
        Notification notification = new Notification();
        notification.icon = 0x7f0200a4;
        notification.flags = 2 | notification.flags;
        int i = cls_q.a();
        int j = 0x7f03001d;
        if(i >= 11)
            j = 0x7f03001e;
        RemoteViews remoteviews = new RemoteViews(cls_PrisApp.a().getPackageName(), j);
        Object aobj[] = new Object[1];
        aobj[0] = com.nnee.p_l.p_a.cls_a.a(processresult.h());
        remoteviews.setTextViewText(0x7f0d005c, com.nnee.p_l.p_b.cls_c.a(0x7f0a0190, aobj));
        Object aobj1[] = new Object[2];
        aobj1[0] = Integer.valueOf(processresult.f());
        aobj1[1] = Integer.valueOf(processresult.e());
        remoteviews.setTextViewText(0x7f0d005d, com.nnee.p_l.p_b.cls_c.a(0x7f0a0201, aobj1));
        remoteviews.setProgressBar(0x7f0d005e, processresult.b(), processresult.a(), false);
        remoteviews.setTextViewText(0x7f0d005b, processresult.c());
        remoteviews.setImageViewResource(0x7f0d005a, 0x7f0200a4);
        notification.contentView = remoteviews;
        Intent intent = b(1, processresult);
        notification.contentIntent = PendingIntent.getActivity(cls_PrisApp.a(), 0, intent, 0x8000000);
        ((NotificationManager)cls_PrisApp.a().getSystemService("notification")).notify(1022, notification);
    }

    public static void d(cls_ProcessResult processresult)
    {
        Notification notification = new Notification();
        notification.icon = 0x7f0200a4;
        notification.flags = 0x10 | notification.flags;
        Intent intent = new Intent(cls_PrisApp.a(), com.nnee.p_pr.p_activity.cls_PRISActivityOffline.class);
        intent.setFlags(0x10000000);
        intent.putExtra("extra_result", processresult);
        intent.putExtra("extra_status", 1);
        PendingIntent pendingintent = PendingIntent.getActivity(cls_PrisApp.a(), 0, intent, 0);
        notification.setLatestEventInfo(cls_PrisApp.a(), com.nnee.p_l.p_b.cls_c.a(0x7f0a0192), (new StringBuilder()).append(com.nnee.p_l.p_b.cls_c.a(0x7f0a0193)).append(com.nnee.p_pr.p_a.cls_f.a(cls_PrisApp.a(), 0x300000L)).toString(), pendingintent);
        ((NotificationManager)cls_PrisApp.a().getSystemService("notification")).notify(1023, notification);
    }

    public static final int a = 256;
    public static final int b = 257;
    public static final int c = 1022;
    public static final int d = 1023;
    public static final int e = 1024;
    public static final int f = 1025;
}
